﻿<%@ Page Language="C#" MasterPageFile="~/Admin/admin.master" AutoEventWireup="true"
    CodeFile="WebUserEdit.aspx.cs" Inherits="WebUserEdit" Title="WebUser Edit" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="Server">
    Web User - Add/Edit</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <data:MultiFormView ID="FormView1" DataKeyNames="UserId" runat="server" DataSourceID="WebUserDataSource">
        <EditItemTemplatePaths>
            <data:TemplatePath Path="~/Admin/UserControls/WebUserFields.ascx" />
        </EditItemTemplatePaths>
        <InsertItemTemplatePaths>
            <data:TemplatePath Path="~/Admin/UserControls/WebUserFields.ascx" />
        </InsertItemTemplatePaths>
        <EmptyDataTemplate>
            <b>WebUser not found!</b>
        </EmptyDataTemplate>
        <FooterTemplate>
            <asp:Button ID="InsertButton" runat="server" CausesValidation="True" CommandName="Insert"
                Text="Insert" />
            <asp:Button ID="UpdateButton" runat="server" CausesValidation="True" CommandName="Update"
                Text="Update" />
            <asp:Button ID="CancelButton" runat="server" CausesValidation="False" CommandName="Cancel"
                Text="Cancel" />
        </FooterTemplate>
    </data:MultiFormView>
    <data:WebUserDataSource ID="WebUserDataSource" runat="server" SelectMethod="GetByUserId">
        <Parameters>
            <asp:QueryStringParameter Name="UserId" QueryStringField="UserId" Type="String" />
        </Parameters>
    </data:WebUserDataSource>
    <br />
</asp:Content>
